p910nd: Run as non-root by default
authorDaniel F. Dickinson <[email protected]>
Sat, 27 Jul 2019 03:47:01 +0000 (23:47 -0400)
committerYousong Zhou <[email protected]>
Fri, 2 Aug 2019 07:58:57 +0000 (15:58 +0800)
commit932c76fa740acb0d68a46b78e2bc0eafd5fe13d6
tree12c9e1df5ea0cf9b98e738ab5c210478c7e1c6f2
parent4832480dc0741bf14c69448329c40d4a83e4544f
p910nd: Run as non-root by default

We add the necessary Makefile, hotplug, config, and init bits
so that p910nd daemon runs as user:group p910nd:lp by default.
This eliminates an unnecessary root daemon.

The hotplug script sets the permissions of the USB lp
device(s) to read-write owner and group and no access to
anyone else, and sets owner root, group lp.

This is allows sufficient privileges to p910nd
to do it's job.

Signed-off-by: Daniel F. Dickinson <[email protected]>
net/p910nd/Makefile
net/p910nd/files/p910nd.config
net/p910nd/files/p910nd.hotplug [new file with mode: 0644]
net/p910nd/files/p910nd.init